package com.dldata.devtools30.repository.sysform;


import com.dldata.devtools30.entity.DevtFormDesignEntity;
import com.dldata.devtools30.repository.BaseRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by zhw on 2020-07-03.
 */
@Repository
public interface DevtFormDesignEntityDao extends BaseRepository<DevtFormDesignEntity,String>, JpaSpecificationExecutor<DevtFormDesignEntity> {
    
    @Query("select t from  DevtFormDesignEntity  t  where  t.templateid=?1 order by t.templateid desc")
    public List<DevtFormDesignEntity> getFormDesignDataByTempid(String tempid);
    
}
